﻿using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace WpfApp4
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
            pathElement.Data = PathGeometry.Parse("M 0 0 200 250");
            borderElement.Width = 500;
            borderElement.Height = 200;
            borderElement.BorderThickness = new Thickness(2);
            borderElement.BorderBrush = new SolidColorBrush(Color.FromRgb(0, 108, 190));
            //borderElement.Background = new SolidColorBrush(Color.FromArgb(90, 0, 108, 190));
            borderElement.Background = new BrushConverter().ConvertFrom("#eee") as SolidColorBrush;
        }
    }
}